home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 8 / Night Owl CD-ROM (NOPV8) (Night Owl Publisher) (1993).ISO / 017a / binutils.arj / README-E < prev    next >
Text File  |  1991-03-27  |  2KB  |  56 lines

  1. 1/3/89 Pace Willisson
  2.  
  3. Here is what to do to bring up gcc & tools on an 80386 running system 5.3
  4. (if you are adventurous and want to use the latest and greatest tools.
  5. If you want it to be easy, check back in a couple of months.)
  6.  
  7. All of these instructions assume you are using the usg compiler.  After
  8. you get to the end, you could start over using the gnu compiler, but 
  9. that may not work yet ...
  10.  
  11. First make gcc, cpp, and gnulib:
  12.  
  13.     cd .../gcc
  14.     config.gcc i386-sysv-gas
  15.     make install
  16.  
  17. (The i386gnu type was added a little after gcc-1.32)
  18. (the install part doesn't really work - you will have to look at
  19. what it tries to do, and do it by hand.)
  20.  
  21. Now, make the gnu assembler:
  22.  
  23.     cd .../gas
  24.     make a386
  25.     cp a386 /usr/local/lib/gcc-as
  26.  
  27. Now, make the other utilities:
  28.  
  29.     cd .../binutils
  30.  
  31. edit Makefile to turn on the CFLAGS for USG using COFF_ENCAPSULATE
  32.  
  33.     make
  34.     cp ld /usr/local/lib/gcc-ld
  35.  
  36. Put the other programs (size nm strip ar objdump and ranlib) somewhere
  37. handy, but don't clobber your usg programs.  I put them all in
  38. /usr/gnu/gnucomp, and I have this shell script in my path under the name "gnu":
  39.  
  40.     exec /usr/gnu/gnucomp/$*
  41.  
  42. That way, I can say "gnu nm a.out", etc.
  43.  
  44. Convert the libraries to the encapsulated format:
  45.  
  46.     make libc.a
  47.     cp libc.a /usr/local/lib/gnu/libc.a
  48.  
  49.     cp .../gcc/gnulib usg-gnulib
  50.     make gnulib
  51.     cp gnulib /usr/local/lib/gcc-gnulib
  52.  
  53.     robotussin /lib/crt0.o /usr/local/lib/gcc-crt0.o
  54.  
  55. Now, you should be able to use 'gcc' to compile programs.
  56.